package team.you.change.service;

import team.you.change.pojo.Table;
import team.you.change.util.Result;

import java.util.Date;

public interface TableService {
    //获取所有课表信息兼模糊查询
    Result getAllTables(String courseName, String realName, String roomCode, String classCode,Integer year,
                        Integer term, Integer week, String time, Integer page, Integer limit);
    //删除一行
    Result del(Integer id);
    //删除多行
    Result delete(Integer[] ids);
    //更新键
    Result update(Integer id, String value, String field);
    //选择需要调整的课程
    Result getChangeTables(String courseName, String realName, String roomCode, String classCode, String year,
                           Integer term, Date time, Integer page, Integer limit);
    //添加课程
    Result add(String userId, String classId, String roomId, String courseId, String createTime, Integer timeSlot);
    //获取不冲突的当前时间上课节数
    Result selectSlot(String time, Table table);
}
